package main.java.com.jiao;

/**
 * 快速排序
 */
public class FastSort {
    int [] arr = {10,5,9,43,12,16,44,88,80};
    public static void sort(int[] arr){
        for (int i = arr.length -1 ; i > 0; i --){
            for (int j = 0; j < i;  j++){
                if (arr[j] > arr[i]){
                    int temp = arr[j];
                    arr[j] = arr[i];
                    arr[i] = temp;
                }
            }
        }
    }
}
